<template>
    <div class="advance-box">
        <el-collapse-transition>
            <div class="advance-inner box-shadow" v-show="visible">
                <div class="advance-cont" :style="{'max-height': height}">
                    <slot></slot>
                </div>
                <div class="advance-btn">
                    <slot name="foot"></slot>
                </div>
            </div>
        </el-collapse-transition>

    </div>
</template>

<script>
    export default {
        name: 'advanceQuery',
        props: {
            visible: {
                type: Boolean,
                default: false
            },
            height: {
                type: String,
                default: '400px'
            }
        },
        components: {},
        data() {
            return {

            }
        },
        methods: {

        }
    }
</script>

<style lang="scss">
    .advance-box {
        position: relative;

        .advance-inner {
            position: absolute;
            top: -20px;
            left: 0;
            right: 0;
            padding-top: 20px;
            background: #f2f5fc;
            z-index: 1999;
            box-shadow: 0px 2px 8px 0px rgba(94, 124, 224, 0.28);

            /deep/ .el-form-item {
                margin-bottom: 14px;
            }

            /deep/ .el-input__inner {
                line-height: 36px;
                height: 36px;
            }

            /deep/ .el-form-item__content {
                line-height: 36px;
            }

            .form-checkbox {
                /deep/ .el-form-item__content {
                    line-height: 20px !important;
                    padding-top: 8px;
                }
            }

            .advance-cont {
                min-height: 50px;
                overflow: auto;
                padding: 0 20px;
            }

            .advance-btn {
                padding: 16px;
                text-align: center;
                box-shadow: 0px -4px 5px 0px #eff2fc;
            }
        }
    }

    .advance-wrap {
        position: relative;
    }
</style>